-- GENERATED SPELL FOR [Grimscale Oracle] --


function spell0_15669(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(26661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15669', 10267, 1)
end

function spell1_15669(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17137,pUnit)
pUnit:RegisterEvent('Sorts_15669', 1500, 1)
end

function Sorts_15669(pUnit, Event)
local choix_sorts_15669 = math.random(0, 1)
if choix_sorts_15669 == 0 then
pUnit:RegisterEvent('spell0_15669', 1, 1)
end
if choix_sorts_15669 == 1 then
pUnit:RegisterEvent('spell1_15669', 1, 1)
end
end

function mob15669_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15669', math.random(1500, 3000), 1)
end

function mob15669_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15669_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15669_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15669, 1, 'mob15669_Action')
RegisterUnitEvent(15669, 2, 'mob15669_Leave')
RegisterUnitEvent(15669, 3, 'mob15669_Kill')
RegisterUnitEvent(15669, 4, 'mob15669_Die')
